<% unless @work_logs.empty? %>
    <div class="export-options">
      <%= link_to "PDF", current_url(:format => :pdf), :target => "_blank" %>
      <%= link_to "CSV", current_url(:format => :csv), :target => "_blank" %>
      <%= link_to "Excel", current_url(:format => :xls), :target => "_blank" %>
    </div>

    <table class="table sortable-table highchart" data-graph-container-before="1" data-graph-type="pie" data-graph-xaxis-rotation="-45">
      <thead>
      <tr>
        <th width="400">Task</th>
        <th data-graph-skip="1" width="300">Department</th>
        <th data-graph-skip="1" width="300">Team</th>
        <th data-graph-skip="1" width="200">Hours</th>
        <th class="hidden_class" data-graph-skip="1" width="200">Hours</th>
        <th class="hidden_class" width="200">Hours</th>
        <th data-graph-skip="1" width="200">Status</th>
      </tr>
      </thead>
      <% @work_logs.each do |log| %>
          <tr>
            <td><%= link_to log.task.name,reports_employee_tasks_path(:user_id=>@user.id,:task_id=>log.task_id,:start_date=>@date,:end_date=>@date) %></td>
            <td><%= log.task.project.name %></td>
            <td><%= log.task.team.name %></td>
            <td class="hidden_class"><%= log.hours.gsub(":","") %></td>
            <td><%= log.hours %></td>
            <td class="hidden_class"><%= log.hours.gsub(":",",") %></td>
            <td><%= log.task.status == 'active' ? 'Pending' : log.task.status.capitalize  %></td>
          </tr>
      <% end %>
    </table>
    <script type="text/javascript">
        $(".sortable-table").tablesorter();
        if ($('.table tbody tr').length > 1){$('table.highchart').highchartTable();}
    </script>

<% else %>
    <div class="alert-box secondary">
      No sufficient data yet.
    </div>
<% end %>